﻿using System;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace B.S.Infratrctrue.Migrations
{
    /// <inheritdoc />
    public partial class jdjdj : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "FenpeiCangkus");

            migrationBuilder.CreateTable(
                name: "LogInfo",
                columns: table => new
                {
                    RukuLogId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
                    RukuName = table.Column<string>(type: "longtext", nullable: false)
                        .Annotation("MySql:CharSet", "utf8mb4"),
                    Date = table.Column<DateTime>(type: "datetime(6)", nullable: false),
                    CreteTime = table.Column<string>(type: "longtext", nullable: false)
                        .Annotation("MySql:CharSet", "utf8mb4")
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_LogInfo", x => x.RukuLogId);
                })
                .Annotation("MySql:CharSet", "utf8mb4");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "LogInfo");

            migrationBuilder.CreateTable(
                name: "FenpeiCangkus",
                columns: table => new
                {
                    FenpeiCangkuId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
                    CangId = table.Column<int>(type: "int", nullable: false),
                    CangKuId = table.Column<int>(type: "int", nullable: false),
                    ChuId = table.Column<int>(type: "int", nullable: false),
                    Find = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_FenpeiCangkus", x => x.FenpeiCangkuId);
                })
                .Annotation("MySql:CharSet", "utf8mb4");
        }
    }
}
